package cn.hdu.liang;

import java.util.concurrent.*;

public class Main {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ExecutorService exec = Executors.newCachedThreadPool();
        Future<String> submit = exec.submit(() -> "hello");
        System.out.println(submit.get());
        exec.shutdown();
    }
}